package com.company.cloud.club.modules.core.dto;

/**
 * 筛选条件
 */
public enum Condition {
    eq("eq", "="),
    lt("lt", "<"),
    elt("elt", "<="),
    gt("gt", ">"),
    egt("egt", ">="),
    neq("neq", "<>"),
    betweenValue("betweenValue", "BETWEEN"),
    eqString("eqString", "="),
    like("like", "LIKE"),
    notLike("notLike", "NOT LIKE"),
    neqString("neqString", "<>"),
    before("before", "<"),
    after("after", ">"),
    betweenTime("betweenTime", "BETWEEN"),
    in("in", "IN"),
    notIn("notIn", "NOT IN"),
    raw("raw", ""),
    undefined("undefined", "");
    public final String value;
    public final String dbCond;

    Condition(String value, String dbCond) {
        this.value = value;
        this.dbCond = dbCond;
    }

    public String value() {
        return this.value;
    }

    public String dbCond() {
        return this.dbCond;
    }
}
